
<body >
<div id="fb-root"></div>
<script>(function(d, s, id) {
		var js, fjs = d.getElementsByTagName(s)[0];
		if (d.getElementById(id))
			return;
		js = d.createElement(s);
		js.id = id;
		js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=569351176439293";
		fjs.parentNode.insertBefore(js, fjs);
	}(document, 'script', 'facebook-jssdk'));</script>
<?php 
//Load Category;

$cates = $this->mcategory->gets_available();
 ?>
<header class="wrapper">
	<div class="container">
		<div class="logo">
			<a href="<?php echo base_url() ?>"><img src="<?php echo theme_url(); ?>images/logo.png" alt=""></a>
		</div>
		<ul id="main-nav">
			<li class="active"><a title="Mới nhất" href="<?php echo base_url() ?>">Mới nhất</a></li>
		<?php 
if ($cates) foreach ($cates as $cate) {
	echo '<li><a title="'.$cate->CAT_NAME.'" href="'.category_url($cate->CAT_CODE).'">'.$cate->CAT_NAME.'</a></li>';
}
		?>
		</ul>
		<!--
		<ul id="user-nav">
			<li><a href="#">Đăng nhập</a></li>
			<li><a href="#">Đăng ký</a></li>
		</ul>-->
	<div class="clear"></div>
	</div>
</header>